package band.wukong.practice.java.demo.fileparser.main;

import java.io.File;
import java.io.FileFilter;

/**
 * Description: Java源文件过滤器
 * Author: jsun
 * Date: 2009-11-22 23:20:05
 */
public class JavaFileFilter implements FileFilter {

    public boolean accept(File file) {
        return file.isDirectory() || (file.getName().indexOf(".java")) != -1;
    }

}
